package cn.edu.sdjzu.xg.eagle.entities;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.Date;

@Setter
@Getter
@NoArgsConstructor
public class Statistics {
    private int statisticId;
    private Date statisticTime;
    private double statisticAmount;
    private String statisticsType;

    public Statistics(Date statisticTime, double statisticAmount, String statisticsType) {
        this.statisticTime = statisticTime;
        this.statisticAmount = statisticAmount;
        this.statisticsType = statisticsType;
    }

    @Override
    public String toString() {
        return "Statistics{" +
                "statisticId=" + statisticId +
                ", statisticTime=" + statisticTime +
                ", statisticAmount=" + statisticAmount +
                ", statisticsType='" + statisticsType + '\'' +
                '}';
    }
}